package aam.aop;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;


@Component 
@Aspect
public class DownLogging {
	private Log log=LogFactory.getLog(getClass());
/*	@Resource(name="subBoardServiceImpl")
	private SubBoardService subBoardService;*/

	@Around("execution(* aam.service.SubBoardService.save*(..))")
	public Object downLoadLogging(ProceedingJoinPoint point) throws Throwable{		
		Object retValue = null;	
		retValue = point.proceed();
		String className = point.getTarget().getClass().getName();
		String methodName = point.getSignature().getName();
		
		log.info(className + " " + methodName );
		return retValue;
	}
}











